* International Food Policy Research Institute, 2019, “Global Spatially-Disaggregated Crop Production Statistics Data for 2010 Version 2.0”, https://doi.org/10.7910/DVN/PRFF8V, Harvard Dataverse, V4

// Get the path of the currently running do-file
local do_file_path `c(pwd)'

// Change the working directory to the location of the do-file
cd "`do_file_path'"

cd "local\gis_data\LULCfreq"

use "proc_data\COTT2020-10-20.dta"
rename *, lower
label variable cott "Cotton production (ha) - sum of SPAM in cell : SPAM 2010v2"
label variable cott050 "Cotton production (ha) - sum of SPAM in cell of mean of all cell centres within 50km : SPAM 2010v2"
label variable cott100 "Cotton production (ha) - sum of SPAM in cell of mean of all cell centres within 100km : SPAM 2010v2"

merge 1:1 objectid using "proc_data\COTT.dta"
drop _merge

save "proc_data\COTT.dta", replace